<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<table class="display">
	<thead>
		<tr>
			<th>工号</th>
			<th>姓名</th>
			<th>性别</th>
			<th>部门</th>
			<th>职务</th>
			<th>奖惩时间</th>
			<th>奖惩项目</th>
			<th>奖惩金额</th>
			<th>奖惩日期</th>
			<th>执行情况</th>
		</tr>
	</thead>
	<tbody>
		<s:if test="#request.awards==null || #request.awards.size() <= 0">
			<tr class="gradeA">
				<td colspan="10">暂无数据</td>
			</tr>
		</s:if>
		<s:else>
			<s:iterator value="#request.awards" var="award" status="sta">
				<s:if test="#sta.even">
					<tr class="gradeA">
				</s:if>
				<s:else>
					<tr class="gradeC">
				</s:else>
				<td>${award.employeeinfoWork.workNo}</td>
				<td>${award.employeeinfoWork.baseId.name}</td>
				<td>${award.employeeinfoWork.baseId.name}</td>
				<td><span id="GridView1_ctl04_Label">${award.employeeinfoWork.organization.fullName}</span></td>
				<td>${award.employeeinfoWork.duty.dutyName}</td>
				<<td>${award.awardDate}</td>
				<td>${award.examAwardItem.title}</td>
				<td><s:if test="#award.awardType==0">+</s:if> <s:else>-</s:else>${award.examAwardItem.money}元</td>
				<td><fmt:formatDate value="${award.awardDate}" pattern="yyyy-MM-dd"/></td>
				<td><span class="gradeX"><s:if test="#award.status==0">
							<a class="button" href="javascript:void(0)"><span
								style="background: url(images/img/error.png)"
								class="icon icon-ok">&nbsp;</span>未执行</a>
						</s:if> <s:else>
							<a class="button" href="javascript:void(0)"><span
								style="background: url(images/img/accept.png)"
								class="icon icon-ok">&nbsp;</span>已执行</a>
						</s:else> </span></td>
				</tr>
			</s:iterator>
		</s:else>
	</tbody>
</table>

<p>
	<%@ include file="/WEB-INF/pages/common/main_orgtab_pager.jsp"%>
</p>